package com.touringapp.android.activity;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import android.content.Context;

public class UserAccessorMap extends AbstractAccessorMap<User>{


    public UserAccessorMap(User wrapped) {
		super(wrapped);
	}

	public static ArrayList<Map<String, Object>> convertToListMap(
            List<User> users, Context context) {
        ArrayList<Map<String, Object>> result = new ArrayList<Map<String, Object>>(users.size());
        for (User user : users) {
            result.add(new UserAccessorMap(user));
        }
        return result;
    }

	@Override
	protected String getTitle(User wrapped) {
		return wrapped.getName();
	}

}
